﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="OrderSend.aspx.cs" Inherits="TimKen.Web.Shop.OrderSend" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
 <script type="text/javascript" language="javascript" src="/js/My97DatePicker/WdatePicker.js"  charset="utf-8"  defer="defer"></script>
  <script type="text/javascript" src="/js/jquery.js"></script>
    <script language="javascript" type="text/javascript">
        function checkForm() {
//            var cntctcode = $('input[@name=cntctcode][@checked]').val();
//            var billtoCode = $('input[@name=billtoCode][@checked]').val();
//            var shiptocode = $('input[@name=shiptocode][@checked]').val();
//            if (cntctcode == undefined) {
//                alert('<%=GetLangString("x_LinkManNotAllowBlank")%>');
//                return false;
//            }
//            if (billtoCode == undefined) {
//                alert('<%=GetLangString("x_BillAddressNotAllowBlank")%>');
//                return false;
//            }
//            if (shiptocode == undefined && document.getElementById("<%=this.ddlTransType.ClientID%>").value != "1") {
//                alert('<%=GetLangString("x_ShipAddressNotAllowBlank")%>');
//                return false;
//            }

//            if (shiptocode == 'newaddress' && document.getElementById("address").value == "") {
//                alert('<%=GetLangString("x_ShipAddressNotAllowBlank")%>');
//                return false;
//            }


//            if (document.getElementById("<%=this.txtExpectDate.ClientID%>").value == "") {

//                alert('<%=GetLangString("x_ExpectDateNotAllowBlank")%>');
//                return false;
//            }

            return true;
        }

        function changeShipType() {
            var shipType = document.getElementById("<%=this.ddlTransType.ClientID%>").value
            if (shipType == "1") {

                document.getElementById("trshipInfo2").style.display = "none";
            }
            else {

                document.getElementById("trshipInfo2").style.display = "block";
            }
        }
    </script>
    <form runat="server">
    <div class="rtitle">
        <%=GetLangString("SendOrder")%>
    </div>
    <div class="msglist txtright">
        <a href="../Product/ProductList.aspx">
            <%=GetLangString("OrderStep_SearchProducts")%></a>-><a href="../Cart/View.aspx">
                <%=GetLangString("ShoppingCart")%></a>-> <b>
                    <%=GetLangString("SubmitOrder")%></b>->
        <%=GetLangString("OrderStep_OrderComplete")%>
    </div>
    <div class="ordersend">
        <ul>
           
            <li>
                <div class="right ordersendright">
                    <div class="formtitle">
                        <%=GetLangString("ExpectDate")%>：</div>
                    <asp:TextBox ID="txtExpectDate" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-#{%d}'})"></asp:TextBox>*
                </div>
                <div class="formtitle">
                    <%=GetLangString("ShippingType")%>：</div>
                <asp:DropDownList ID="ddlTransType" runat="server" DataTextField="TransTypeName"
                    onchange="changeShipType()" DataValueField="TransTypeID">
                </asp:DropDownList>
            </li>
            
           
            
            <li style="display: none" id="trshipInfo2">
                
            </li>
            
            
            
            <!--动态区域--->
            <li>
                
            </li>
            
             <li>
                <div class="formtitle">
                
                </div>
            </li>
          
            <li>
                <div class="rightbt">
            <asp:ImageButton
              ID="Button1"  
              runat="server"   ImageUrl="../images/btn_continue.jpg" onclick="Button1_Click" 
                />
    
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
  <asp:ImageButton
              ID="ImageButton1"    OnClientClick="return checkForm();"
              runat="server"   ImageUrl="../images/submit.jpg" onclick="ImageButton1_Click" 
               />
                </div>
            </li>
        </ul>

        <script>
            changeShipType();
        </script>
    </div>
    </form>
</asp:Content>
